using System;
using MonoTouch.UIKit;


namespace Socialite
{
	public static class NavigationLogic
	{
		public static UsersScreen UsersPage 
		{
			get 
			{
				if (_usersScreen == null)
					_usersScreen = new UsersScreen ();
				
				return _usersScreen;
			}
		}
		static UsersScreen _usersScreen;
		
		public static MustCheckinScreen MustCheckinPage {
			get {
				if (_mustCheckinScreen == null)
					_mustCheckinScreen = new MustCheckinScreen ();
				
				return _mustCheckinScreen;
			}
		}
		static MustCheckinScreen _mustCheckinScreen;
		
		public static WhatsHotScreen WhatsHotPage {
			get {
				if (_whatsHotScreen == null)
					_whatsHotScreen = new WhatsHotScreen ();
				
				return _whatsHotScreen;
			}
		}
		static WhatsHotScreen _whatsHotScreen;
		
		public static ProfileScreen ProfilePage {
			get {
				if (_profileScreen == null)
					_profileScreen = new ProfileScreen ();
				
				return _profileScreen;
			}
		}
		static ProfileScreen _profileScreen;
		
		public static SearchScreen SearchPage {
			get {
				if (_searchScreen == null)
					_searchScreen = new SearchScreen ();
				
				return _searchScreen;
			}
		}
		static SearchScreen _searchScreen;
		
		public static UIViewController GetNextPage (UIViewController viewController)
		{
			if (viewController.GetType () == typeof(MustCheckinScreen))
				return UsersPage;
			
			return null;
		}
	}
}

